
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-cancel"></use>
                    </svg>
                    <div class="name">勾</div>
                    <div class="fontclass">#rws-cancel</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-caution"></use>
                    </svg>
                    <div class="name">警示</div>
                    <div class="fontclass">#rws-caution</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-no-data"></use>
                    </svg>
                    <div class="name">无数据</div>
                    <div class="fontclass">#rws-no-data</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-icon-test"></use>
                    </svg>
                    <div class="name">禁用</div>
                    <div class="fontclass">#rws-icon-test</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-man"></use>
                    </svg>
                    <div class="name">男</div>
                    <div class="fontclass">#rws-man</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-more"></use>
                    </svg>
                    <div class="name">更多</div>
                    <div class="fontclass">#rws-more</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-search"></use>
                    </svg>
                    <div class="name">搜索</div>
                    <div class="fontclass">#rws-search</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-star"></use>
                    </svg>
                    <div class="name">星</div>
                    <div class="fontclass">#rws-star</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-setting"></use>
                    </svg>
                    <div class="name">设置</div>
                    <div class="fontclass">#rws-setting</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-women"></use>
                    </svg>
                    <div class="name">女</div>
                    <div class="fontclass">#rws-women</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-delete"></use>
                    </svg>
                    <div class="name">删 除</div>
                    <div class="fontclass">#rws-delete</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-card"></use>
                    </svg>
                    <div class="name">card</div>
                    <div class="fontclass">#rws-card</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-dishes"></use>
                    </svg>
                    <div class="name">dishes</div>
                    <div class="fontclass">#rws-dishes</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-termination-forbid"></use>
                    </svg>
                    <div class="name">termination-forbid</div>
                    <div class="fontclass">#rws-termination-forbid</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-location"></use>
                    </svg>
                    <div class="name">location</div>
                    <div class="fontclass">#rws-location</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-money"></use>
                    </svg>
                    <div class="name">money</div>
                    <div class="fontclass">#rws-money</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-hotel"></use>
                    </svg>
                    <div class="name">hotel</div>
                    <div class="fontclass">#rws-hotel</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-dollar"></use>
                    </svg>
                    <div class="name">dollar</div>
                    <div class="fontclass">#rws-dollar</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-message"></use>
                    </svg>
                    <div class="name">message</div>
                    <div class="fontclass">#rws-message</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-user"></use>
                    </svg>
                    <div class="name">user</div>
                    <div class="fontclass">#rws-user</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-ticket"></use>
                    </svg>
                    <div class="name">ticket</div>
                    <div class="fontclass">#rws-ticket</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-time"></use>
                    </svg>
                    <div class="name">time</div>
                    <div class="fontclass">#rws-time</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-collect"></use>
                    </svg>
                    <div class="name">collect</div>
                    <div class="fontclass">#rws-collect</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-arrow-down"></use>
                    </svg>
                    <div class="name">arrow-down</div>
                    <div class="fontclass">#rws-arrow-down</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-nationality"></use>
                    </svg>
                    <div class="name">nationality</div>
                    <div class="fontclass">#rws-nationality</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-species"></use>
                    </svg>
                    <div class="name">species</div>
                    <div class="fontclass">#rws-species</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-churn"></use>
                    </svg>
                    <div class="name">churn</div>
                    <div class="fontclass">#rws-churn</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-arrow-up"></use>
                    </svg>
                    <div class="name">arrow-up</div>
                    <div class="fontclass">#rws-arrow-up</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-residence"></use>
                    </svg>
                    <div class="name">residence</div>
                    <div class="fontclass">#rws-residence</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-go-up"></use>
                    </svg>
                    <div class="name">go-up</div>
                    <div class="fontclass">#rws-go-up</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-room"></use>
                    </svg>
                    <div class="name">room</div>
                    <div class="fontclass">#rws-room</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-gift"></use>
                    </svg>
                    <div class="name">gift</div>
                    <div class="fontclass">#rws-gift</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-birthday"></use>
                    </svg>
                    <div class="name">birthday</div>
                    <div class="fontclass">#rws-birthday</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-question"></use>
                    </svg>
                    <div class="name">question</div>
                    <div class="fontclass">#rws-question</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-decline"></use>
                    </svg>
                    <div class="name">decline</div>
                    <div class="fontclass">#rws-decline</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-none-collect"></use>
                    </svg>
                    <div class="name">none-collect</div>
                    <div class="fontclass">#rws-none-collect</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-consume"></use>
                    </svg>
                    <div class="name">consume</div>
                    <div class="fontclass">#rws-consume</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-eye"></use>
                    </svg>
                    <div class="name">eye</div>
                    <div class="fontclass">#rws-eye</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-language"></use>
                    </svg>
                    <div class="name">language</div>
                    <div class="fontclass">#rws-language</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-none-customer"></use>
                    </svg>
                    <div class="name">none-customer</div>
                    <div class="fontclass">#rws-none-customer</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-certificate"></use>
                    </svg>
                    <div class="name">certificate</div>
                    <div class="fontclass">#rws-certificate</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-flat"></use>
                    </svg>
                    <div class="name">flat</div>
                    <div class="fontclass">#rws-flat</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-decline1"></use>
                    </svg>
                    <div class="name">decline</div>
                    <div class="fontclass">#rws-decline1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-forbidden"></use>
                    </svg>
                    <div class="name">forbidden</div>
                    <div class="fontclass">#rws-forbidden</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-line-message"></use>
                    </svg>
                    <div class="name">line-message</div>
                    <div class="fontclass">#rws-line-message</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-grow"></use>
                    </svg>
                    <div class="name">grow</div>
                    <div class="fontclass">#rws-grow</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-hand"></use>
                    </svg>
                    <div class="name">hand</div>
                    <div class="fontclass">#rws-hand</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-line-phone"></use>
                    </svg>
                    <div class="name">line-phone</div>
                    <div class="fontclass">#rws-line-phone</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-screen"></use>
                    </svg>
                    <div class="name">screen</div>
                    <div class="fontclass">#rws-screen</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-time1"></use>
                    </svg>
                    <div class="name">time1</div>
                    <div class="fontclass">#rws-time1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-largest-twin"></use>
                    </svg>
                    <div class="name">largest-twin</div>
                    <div class="fontclass">#rws-largest-twin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-location1"></use>
                    </svg>
                    <div class="name">location1</div>
                    <div class="fontclass">#rws-location1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-Dormant"></use>
                    </svg>
                    <div class="name">dormant</div>
                    <div class="fontclass">#rws-Dormant</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-line-time"></use>
                    </svg>
                    <div class="name">line-time</div>
                    <div class="fontclass">#rws-line-time</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-exit"></use>
                    </svg>
                    <div class="name">exit</div>
                    <div class="fontclass">#rws-exit</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-menu"></use>
                    </svg>
                    <div class="name">menu</div>
                    <div class="fontclass">#rws-menu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-ticket1"></use>
                    </svg>
                    <div class="name">ticket1</div>
                    <div class="fontclass">#rws-ticket1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-enter"></use>
                    </svg>
                    <div class="name">enter</div>
                    <div class="fontclass">#rws-enter</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-select-all"></use>
                    </svg>
                    <div class="name">select-all</div>
                    <div class="fontclass">#rws-select-all</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-mobile-delete"></use>
                    </svg>
                    <div class="name">mobile-delete</div>
                    <div class="fontclass">#rws-mobile-delete</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-no-contact"></use>
                    </svg>
                    <div class="name">no-contact</div>
                    <div class="fontclass">#rws-no-contact</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-no-telephone"></use>
                    </svg>
                    <div class="name">no-telephone</div>
                    <div class="fontclass">#rws-no-telephone</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-direction-down"></use>
                    </svg>
                    <div class="name">direction-down</div>
                    <div class="fontclass">#rws-direction-down</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-direction-left"></use>
                    </svg>
                    <div class="name">direction-left</div>
                    <div class="fontclass">#rws-direction-left</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-direction-up"></use>
                    </svg>
                    <div class="name">direction-up</div>
                    <div class="fontclass">#rws-direction-up</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#rws-direction-right"></use>
                    </svg>
                    <div class="name">direction-right</div>
                    <div class="fontclass">#rws-direction-right</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#rws-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
